package com.vpen.server.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * 描述
 *
 * @author 韦鹏
 * @date 2022/11/26 21:25
 */
@Configuration
public class BeanConfig {

    /**
     * 注入这个Bean后，可通过 @ServerEndpoint来暴露你都url地址
     */
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
